﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using JumJob.Models;
namespace JumJob.Controllers
{
    public class SearchController : Controller
    {
        //
        // GET: /Search/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Results()
        {
            String query= Request.QueryString["q"];
            ViewData["query"] = query;
            return View(Job.search(query));
        }

    }
}
